package com.yupi.PrepZone.constant;

public interface RedisConstant {
    /*
    * 用户签到记录Redis key
    * */
    String USER_SIGN_IN_KEY_PREFIX = "user:signins:";
    /*
    * 获取用户签到记录的Redis key
    * */
    static String getUserSignInKey(int year, long userId) {
        return String.format("%s,%d,%d", USER_SIGN_IN_KEY_PREFIX, year, userId);
    }
}
